package com.assignwork.dto;

import com.assignwork.entity.StartedCabin;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * StartedCabinDTO
 */
@Data
@ApiModel(value = "StartedCabinDTO对象", description = "作业舱")
public class StartedCabinDTO extends StartedCabin {

    private List<StartedCabinDTO> hatchs;

    public StartedCabin toEtt() {
        if (getId() != null) {
            setGroupFg(null);
        }
        return this;
    }
}